package com.jinly.ryder.flow.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinly.ryder.flow.service.model.FlowApply;
import com.jinly.ryder.flow.service.model.FlowAudit;

import java.util.List;
import java.util.Set;

public interface FlowApplyQueryService {
    /**
     * 申请详情
     *
     * @param applyId
     * @return
     */
    FlowApply applyDetail(Long applyId);

    FlowAudit auditDetail(Long auditId);

    List<FlowAudit> auditList(Long applyId);

    /**
     * 用户申请列表分页
     *
     * @param flowApply
     * @return
     */
    Page<FlowApply> userApplyPage(Page page, FlowApply flowApply);

    Page<FlowAudit> userAuditPage(Page page, FlowAudit flowAudit, FlowApply applyQuery);

    List<FlowApply> batchQueryApply(Set<Long> applyIds);
}
